import request from '@/utils/request'

// 查询家校部门列表
export function listJxdept(query) {
  return request({
    url: '/jx/jxdept/list',
    method: 'get',
    params: query
  })
}

// 查询家校部门详细
export function getJxdept(id) {
  return request({
    url: '/jx/jxdept/' + id,
    method: 'get'
  })
}

// 新增家校部门
export function addJxdept(data) {
  return request({
    url: '/jx/jxdept',
    method: 'post',
    data: data
  })
}

// 修改家校部门
export function updateJxdept(data) {
  return request({
    url: '/jx/jxdept',
    method: 'put',
    data: data
  })
}

// 删除家校部门
export function delJxdept(id) {
  return request({
    url: '/jx/jxdept/' + id,
    method: 'delete'
  })
}

// 导出家校部门
export function exportJxdept(query) {
  return request({
    url: '/jx/jxdept/export',
    method: 'get',
    params: query
  })
}

//编辑部门管理员
export function editAdmins(data) {
  return request({
    url: '/jx/jxdept/editAdmins',
    method: 'post',
    data
  })
}

